home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08SMP.ZIP / usr / samples / dbview / Main.m < prev    next >
Encoding:
Text File  |  1996-02-13  |  1.3 KB  |  51 lines

  1. /* -------------------------------------------------------------------
  2.  
  3.     Project: 
  4.  
  5.     Objective-C main source file for the project
  6.  
  7.     This file was automatically generated by OS/2 Project Builder
  8.     COPYRIGHT (C), 1995, Thomas Baier
  9.  
  10.     Unregistered version
  11.  
  12.     Do not edit this file manually!
  13.  
  14.     COPYRIGHT (C), 1995
  15.     ALL RIGHTS RESERVED.
  16.  
  17.     Date:                           Rev:
  18.     Sat Oct 14 02:06:20 1995
  19.  
  20.  
  21.                               Main File                              
  22.  
  23. ------------------------------------------------------------------- */
  24. #include <pm/pm.h>
  25. #include "Controller.h"
  26.  
  27. /* --------------------- Function Prototypes ---------------------- */
  28. int main (int argc, char **argv);
  29.  
  30. /* ------------------------ Implementation ------------------------ */
  31. int main (int argc, char **argv)
  32. {
  33.   id application;
  34.   id interfaceFile;
  35.  
  36.   /* ----------------------- Initialization ----------------------- */
  37.   registerClasses ();
  38.  
  39.   application = [[StdApp alloc] init];
  40.   interfaceFile = [application loadIBFile: "DBView.oib"];
  41.  
  42.   [[interfaceFile objectWithTitle: "Controller"] parse: argv count: argc];
  43.  
  44.   /* ----------------------- Run Application ---------------------- */
  45.   [application run];
  46.  
  47.   /* ------------------------ Free Objects ------------------------ */
  48.   [interfaceFile freeObjects];
  49.   [application free];
  50. }
  51.